package com.cskaoyan.bean.vo;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 该类用于向客户端返回数据;
 * @author: 陈慧颖
 * @time: Created by chy on 2022/6/6 16:45
 */

@Data
public class CouponReadVo {

    private Integer id;
    private String name;
    private String desc;
    private String tag;
    private Integer total;
    private Integer discount;
    private Integer min;
    private Integer limit;
    private Integer type;
    private Integer status;
    private Integer goodsType;
    // 向客户端返回就是 list;  而在数据库里是 varchar;
    private List<?> goodsValue;
    private String code;
    private Integer timeType;
    private Integer days;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date addTime;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private Boolean deleted;
}
